<template>
<router-link :to="`/mvdetail/${item.id}/${item.artistId}`" tag="li">
      <img :src="item.cover">
      <p>{{item.name}}</p>
      <h6>{{item.playCount|formatNum}}</h6>
</router-link>
</template>
<script>
export default {
  props:{
     item:Object,
  },
  filters:{
    formatNum(value){
      return (value / 10000).toFixed(1)+'万'
    }
  }
}
</script>
<style lang="less" scoped>
li{
  width: 48%;
  position: relative;
  height: 25vh;
  overflow: hidden;
  img{
    height: 80%;
    border-radius: 20px;
    width: 100%;
  }
  p{
    text-align: center;
    font-size: 12px;
    color: #333;
    margin-top: 10px;
  }
  h6{
    position: absolute;
    right: 12px;
    top: 6px;
    z-index: 3;
    padding-left: 13px;
    color: #fff;
    font-size: 12px;
    background-position: 0;
    background-image: url();
    background-repeat: no-repeat;
    background-size: 11px 10px;
    text-shadow: 1px 0 0 rgb(0,0,0/15%);
  }
}
</style>